﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.LabAssist.Models
{
    /// <summary>
    /// 楼栋表
    /// </summary>
    [Table("TB_Building")]
    public class Building
    {
        /// <summary>
        /// 楼栋id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 楼栋名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 位置名称
        /// </summary>
        public string? LocationName { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        public double Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        public double Latitude { get; set; }



        #region 外键

        /// <summary>
        /// 该楼包含的楼层
        /// </summary>
        public List<Floor> floors = null;

        /// <summary>
        /// 所属学院
        /// </summary>
        public Academician academician  { get; set; }
        /// <summary>
        /// 对应学院id
        /// </summary>
        public int academicianId { get; set; }
        #endregion
    }
}
